<?php
/**
 * @version     CBE Template default View User default_toolbar.php 2009.08.01
 * @package		CommunityBuilderEnhanced for Joomla 1.6
 * @subpackage 	Komponente
 * @author 		CBE Entwicklerteam
 * @link		http://www.joomla-cbe.de
 * @copyright 	Copyright (C) 2005 - 2009 Open Source Matters, Inc. All rights reserved.
 * @license     GNU/GPL
 */
// No direct access
defined('_JEXEC') or die('Restricted access');
JRequest::setVar('hidemainmenu', 1);
$isNew = ($this->form->getValue('id') < 1);
$text = $isNew ? JText::_('CBE_NEW') : JText::_('CBE_EDIT');
JToolBarHelper::title(JText::_('CBE_USER') . ': <small><small>[ ' . $text . ' ]</small></small>');
JToolBarHelper::save('user.save');
if ($isNew) {
	JToolBarHelper::cancel('user.cancel');
} else {
	// for existing items the button is renamed `close`
	JToolBarHelper::cancel('user.cancel', 'CBE_CLOSE');
}

